package com.smalluz.ad.modules.ks.api.impl;

import com.smalluz.ad.modules.common.enums.MediaApiUrl;
import com.smalluz.ad.modules.ks.api.KsClueService;
import com.smalluz.ad.modules.ks.api.KsService;
import com.smalluz.ad.modules.ks.bean.KsCluePageRequest;
import com.smalluz.ad.modules.ks.result.KsClueResult;

import lombok.RequiredArgsConstructor;
@RequiredArgsConstructor
public class KsClueServiceImpl implements KsClueService {
    
    private final KsService ksService; 
    
    @Override
    public KsClueResult getPageClue(KsCluePageRequest clueRequest) {
        String resultContent = ksService.post(MediaApiUrl.KsClueUrl.CLUE_OPEN_API_PAGE_LIST, clueRequest);
        
        System.out.println("原始回传：" + resultContent);
        return KsClueResult.fromJson(resultContent);
    
    }

}
